#ifndef __CONTENTTYPE_H__
#define __CONTENTTYPE_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"

typedef struct ContentType 
{
    char   *Type;
    char   *Name;
    char   *CharSet;
    char   *Boundary;
}CONTENT_TYPE;

CONTENT_TYPE*   contenttype_new();
void            contenttype_delete(CONTENT_TYPE*);
void            contenttype_clear(CONTENT_TYPE*);
int             contenttype_set(void *type, char* member, char* value);
int             contenttype_parse(CONTENT_TYPE*, char*);    
void            contenttype_print(CONTENT_TYPE*);
int             contenttype_string(CONTENT_TYPE*, char*, int);

#endif

